#include "myservice.h"
#include <QDebug>

MyService::MyService(int argc, char **argv)
    : QtService<QCoreApplication>(argc, argv, "ServiceDemo")
{
    setServiceDescription("Service Demo");
    setServiceFlags(QtServiceBase::CanBeSuspended);
}

MyService::~MyService()
{
}

void MyService::start()
{
   // 将服务要做的事情放在这里.
    qDebug() << Q_FUNC_INFO;
}

void MyService::stop()
{
    qDebug() << Q_FUNC_INFO;
}
